package controller

import (
	"day01/project_learning/chapter_05/config"
	"day01/project_learning/chapter_05/domain"
	"fmt"
	"github.com/gin-gonic/gin"
)

func GetUser(c *gin.Context) {
	fmt.Println("getUser")

}

/*测试mysql*/
func InsertUser(c *gin.Context) {
	fmt.Println("测试mysql 插入")
	db := config.GetDB()
	user := domain.User{2, "12222", "xiao ka lou mi"}
	db.Save(user)
}
